package com.zhny.view;

import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;

import javax.swing.*;
import java.awt.*;

/**
 * @Author 侯俊杰
 * @Date 2017/11/8
 * @Time 18:50
 **/
public class MainJFrame extends JFrame
{
    public void createJFrame(String title)
    {
        JFrame jf = new JFrame(title);
        Container container = jf.getContentPane();
        JTabbedPane myTabbedPane = new MainJTabbedPane().getMyTabbedPane();
        container.add(myTabbedPane);
        container.setBackground(Color.white);
        jf.setVisible(true);
        jf.setSize(800,600);
        jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        jf.setResizable(false);

    }

    public static void main(String[] args)
    {
        try
        {
            //设置本属性改变窗口边框
            BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow;
            org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
            UIManager.put("RootPane.setupButtonVisible", false);//隐藏设置
            BeautyEyeSettingHelper.setDefaultFont("微软雅黑");
        }
        catch(Exception e)
        {
            //TODO exception
        }

        new MainJFrame().createJFrame("德州陵县省平台通信系统");
    }
}
